package com.oo.inherit_3.game;

/**
 * Snake--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 10:45
 **/
public class Snake extends Monster{
    public Snake(String name, int blood, int attckPower) {
        super(name, blood, attckPower);
    }

    @Override
    protected void move() {
        System.out.println("我是蛇怪，我走S型");
    }

    public Snake() {
    }

    protected void addBlood() {
        int blood = this.getBlood();
        if (blood < 10) {
            blood += 20;
            this.setBlood(blood);
            System.out.println("大蛇补血，当前生命值是："+this.getBlood());
        }
    }

}
